<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .a{
            background: #000;
        }
    </style>
</head>
<body>

    <div class="a">111</div>


    <script src="../js/tools.js"></script>
    <script>

        // 回流和重绘  结构或者样式的改变导致页面部分重新渲染

        const oDiv = get('div') ;

        setCss(oDiv , {
            color : 'red' ,
            fontSize : '20px'
        })

        console.log(getCss(oDiv , 'background'));


    </script>
    
</body>
</html>